﻿@model DPUWebPhet10.Models.ScoreRound21Model
@using DPUWebPhet10.Helpers
@using PagedList.Mvc;
@{
    ViewBag.Title = "";
    Layout = "~/Views/Shared/_Managementlayout.cshtml";
}
@{
    <div class="full_w" style="width: 860px">
        <div class="h_title" style="width: 845px">
            Manage pages - บันทึกคะแนน</div>
        @using (Html.BeginForm("Round2_1", "Score"))
        { 
            @Html.HiddenFor(model => model.studentName);
            <p>
                <label>รหัสนักเรียน</label>
                @Html.EditorFor(model => model.studentCode)
                <input type="submit" name="actionName" class="button add" value="ค้นหา" style="width: 50px" />
                @Html.ValidationMessageFor(model => model.studentCode)


                @Model.studentName
            </p>
            

                if (ViewBag.ResultMsg != null)
                {
                    <div class="n_ok">
                        <p>
                            @ViewBag.ResultMsg
                        </p>
                    </div>
                }
                if (ViewBag.ResultErrorMsg != null)
                {
                    <div class="n_error">
                        <p>
                            @ViewBag.ResultErrorMsg
                        </p>
                    </div>
                }

                if (Model.studentName != null)
                {
            <h1>
                บันทึกคะแนนการเขียนเรียงความภาษาจีน</h1>
            <table>
                <tr>
                    <td style="width: 40px; text-align: left;">@Html.Label("กรรมการ")</td>
                    <td style="width: 20px; text-align: center;">
                        การนำเข้าสู่เนื้อหา<br />
                        (5)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        เนื้อหาสาระ<br />
                        (25)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        สรุป<br />
                        (5)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        ความคิดสร้างสรรค์<br />
                        (5)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        ความถูกต้องของตัวอักษร<br />
                        (10)
                    </td>
                </tr>
                <tr>
                    <td style="width: 40px; text-align: left;"></td>
                    <td style="width: 20px; text-align: left;">
                        @Html.ValidationMessageFor(model => model.score11)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.ValidationMessageFor(model => model.score12)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.ValidationMessageFor(model => model.score13)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.ValidationMessageFor(model => model.score14)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.ValidationMessageFor(model => model.score15)
                    </td>
                </tr>
                <tr>
                    <td style="width: 40px; text-align: left;">@Html.Label("(1)")</td>
                    <td style="width: 20px; text-align: left;">
                        @Html.EditorFor(model => model.score11)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.EditorFor(model => model.score12)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.EditorFor(model => model.score13)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.EditorFor(model => model.score14)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.EditorFor(model => model.score15)
                    </td>
                </tr>
                <tr>
                <td></td>
                    <td style="width: 40px; text-align: left;">
                        @Html.ValidationMessageFor(model => model.score21)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.ValidationMessageFor(model => model.score22)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.ValidationMessageFor(model => model.score23)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.ValidationMessageFor(model => model.score24)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.ValidationMessageFor(model => model.score25)
                    </td>
                </tr>
                <tr>
                <td style="width: 40px; text-align: left;">@Html.Label("(2)")</td>
                    <td style="width: 20px; text-align: left;">
                        @Html.EditorFor(model => model.score21)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.EditorFor(model => model.score22)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.EditorFor(model => model.score23)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.EditorFor(model => model.score24)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.EditorFor(model => model.score25)
                    </td>
                </tr>
                <tr>
                    <td style="width: 40px; text-align: left;"></td>
                    <td style="width: 20px; text-align: left;">
                        @Html.ValidationMessageFor(model => model.score31)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.ValidationMessageFor(model => model.score32)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.ValidationMessageFor(model => model.score33)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.ValidationMessageFor(model => model.score34)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.ValidationMessageFor(model => model.score35)
                    </td>
                </tr>
                <tr>
                <td style="width: 40px; text-align: left;">@Html.Label("(3)")</td>
                    <td style="width: 20px; text-align: left;">
                        @Html.EditorFor(model => model.score31)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.EditorFor(model => model.score32)
                    </td>
                    <td style="width: 20px; text-align: left;">
                        @Html.EditorFor(model => model.score33)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.EditorFor(model => model.score34)
                    </td>
                    <td style="width: 20px; text-align: center;">
                        @Html.EditorFor(model => model.score35)
                    </td>
                </tr>
            </table>  
            <div class="entry">
                <div class="sep">
                </div>
                <input type="submit" name="actionName" class="button" value="บันทึก" style="width: 50px" />
                @Html.ActionLink("ลบ", "clearRound21Score", new { id = Model.studentCode }, new { @class = "del button" })      
            </div>                  
                }

        }
@*        @if (ViewBag.ResultOKMsg != null)
        {
            <div class="n_ok">
                <p>
                    @ViewBag.ResultOKMsg
                </p>
            </div>
        }*@

    </div>
}
@section Scripts {
    <script type="text/javascript">
        $(document).ready(function () {

            $('#studentCode').focus();

        });
    </script>
}
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
